<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>uu.css - test</title>
<style type="text/css">@import url(../../README.css);</style>
<script type="text/javascript" src="http://uupaa-js-spinoff.googlecode.com/svn/trunk/uupaa-detect.js/uupaa-detect.mini.js"></script>
<script type="text/javascript" src="../../uupaa-selector.js"></script>
<script type="text/javascript" src="../../uupaa-selector+.js"></script>
  <style>
  </style>
</head>
<body>
<p>数値セルだけを右寄せ</p>
<table border="1">
  <tr><td>aaaaaaaa</td><td>bbbbbbbbbbb</td></tr>
  <tr><td>0       </td><td>"1234"     </td></tr>
  <tr><td>+1.2    </td><td>123,456.78 </td></tr>
  <tr><td>-3.4    </td><td>-123,456.78</td></tr>
  <tr><td>-0      </td><td>+0         </td></tr>
</table>
<script>
function boot() {
  uu.css("td:digit").forEach(function(v) {
    v.style.textAlign = "right";
    v.style.color = "skyblue";
  });
}
window.onload = boot;
</script>
<pre class="eg">
uu.css("td:digit").forEach(function(v) {
  v.style.textAlign = "right";
  v.style.color = "skyblue";
});
</pre>
</body>
</html>